package cn.duhengkui.national.valuelist.tool;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**   
 * <table border="1">
 *	<tr><td>包名称：</td><td>cn.duhengkui.national.valuelist.tool</td></tr>
 *	<tr><td>类名称：</td><td>EntityData</td></tr>
 *	<tr><td>类描述：</td><td>生成entity的元数据类</td></tr>
 *	<tr><td>创建人：</td><td>杜恒奎</td></tr>
 *  <tr><td>创建时间：</td><td>2018年6月8日/上午9:51:33</td></tr> 
 *  <tr><td>版本：</td><td>1.0.0</td></tr>
 * </table>   
 *     
 */
public class EntityData {

	private String name;
	
	private String type;
	
	private Map<String, Column> pkMap = new HashMap<>();
	
	private List<Column> columnList = new ArrayList<>();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public EntityData addPK(String columnName, Column column) {
		pkMap.put(columnName, column);
		return this;
	}

	/**
	 * @return the pkMap
	 */
	public Map<String, Column> getPkMap() {
		return pkMap;
	}

	public EntityData addColumn(Column column) {
		columnList.add(column);
		return this;
	}
	
	/**
	 * @return the columnList
	 */
	public List<Column> getColumnList() {
		return columnList;
	}


	
	
}